<h1>Current Potholes</h1>
<p>
<?php echo $html->link('Add a Pothole', '/potholes/add') ?>
</p>
<table>
   <tr>
		<th>Id</th>
		<th>Town</th>
		<th>Location</th>
		<th>Title</th>
		<th>User</th>
		<th>Created</th>
		<th>Description</th>
		<th>Status</th>
		<th>Image</th>
		<th>Video</th>
		<th>Actions</th>
	</tr>
	<?php foreach ($potholes as $pothole): ?>
	<tr>
		<td><?php echo $pothole['Pothole']['ID']; ?></td>
		<td><?php echo $pothole['Pothole']['town_ID']; ?></td>
		<td><?php echo $pothole['Pothole']['location']; ?></td>
		<td><?php echo $pothole['Pothole']['title']; ?></td>
		<td><?php echo $pothole['Pothole']['user_ID']; ?></td>
		<td><?php echo $pothole['Pothole']['created']; ?></td>
		<td><?php echo $pothole['Pothole']['description']; ?></td>
		<td><?php echo $pothole['Pothole']['status']; ?></td>
		<td><?php echo $pothole['Pothole']['image']; ?></td>
		<td><?php echo $pothole['Pothole']['video']; ?></td>
	   
		<td>
		<?php echo $html->link('View', "/potholes/view/{$pothole['Pothole']['ID']}")?><br />
		[<?php echo $html->link('Edit', "/potholes/edit/{$pothole['Pothole']['ID']}")?><br />
		<?php echo $html->link('Delete', "/potholes/delete/{$pothole['Pothole']['ID']}", null, 'Are you sure?')?>]
		</td>
	</tr>
   <?php endforeach; ?>
</table>